<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>中国近代史科普</title>
        <link rel="stylesheet" href="styles.css">
    </head>
    <body>
      <style>
        /* 全部样式 */
/* 全部样式 */
html, body {
    font-family: "microsoft yahei, arial, helvetica, sans-serif";
    font-size: 16px;
    margin: 0;
    padding: 0;
    height: 100%;
    background-image: url('../images/10.jpg'); /* 设置背景图片 */
    background-size: cover; /* 覆盖整个页面 */
    background-position: center; /* 居中显示 */
    background-attachment: fixed; /* 固定背景，不随滚动条滚动 */
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: #000;
}

.auto {
    margin: 0 auto;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

/* 网页样式 */
.top1 {
    height: 60px;
    background-color: rgb(200, 16, 16);
}

.top1 li {
    width: 150px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    float: left;
}

.top1 li a {
    color: #fff;
    display: block;
}

.top1 li a:hover {
    color: gold;
    font-weight: 700;
}
.top1 li a.active {
          color: gold;
          font-size: 20px;
          background-color: #ff6c6c;
          font-weight: 700;
        }
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px; /* 或者您希望的页脚高度 */
    background-color: rgb(200, 16, 16);
    color: white;
    text-align: center;
    line-height: 60px; /* 使文本垂直居中 */
}

.sidebar {
    z-index: 3;
    position: fixed;
    top: 0;
    left: 0;
    width: 70px; /* 初始宽度 */
    margin-top: 60px;
    background-color: rgba(225, 157, 157, 0.5);
    color: #fff;
    text-align: center;
    padding-top: 200px;
    cursor: pointer;
    height: 350px;
    transition: width 0.5s;
}

.chakan {
    color: #fff;
}

.chakan:hover {
    background-color: gold;
    color: #000;
    font-weight: 700;
}

.sidebar:hover {
    width: 150px; /* 悬浮时的宽度 */
}

.sidebar li a {
    display: block;
    margin-bottom: 10px;
    opacity: 0;
    color: #fff;
    transition: opacity 0.5s;
}

.sidebar:hover li a {
    opacity: 1; /* 悬浮在侧边栏时，内容出现 */
}

.sidebar li a:hover {
    opacity: 1;
    color: #000;
    font-weight: 700;
    background-color: gold;
}

.references-container {
    margin: 20px;
    margin-left: 130px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.3); /* 背景透明度设置为0.3 */
    border-radius: 8px;
    position: relative;
}

.references-container h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 24px;
}

.references-container ul {
    padding-left: 20px;
    list-style-type: disc;
}

.references-container li {
    margin-bottom: 10px;
}

.references-container a {
    color: #000;
    font-size: 18px;
    transition: color 0.3s ease;
}

.references-container a:hover {
    color: gold;
    text-decoration: underline;
}

/* 图标样式 */
.references-container h3 i {
    margin-right: 10px;
    color: #007bff;
}

/* 动画效果 */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.references-container {
    animation: slideInFromLeft 1s ease-out;
}
      </style>
      <script>
        window.onload = function() {
        const navLinks = document.querySelectorAll('.top1 li a');
          // 为每个导航链接添加点击事件
          navLinks.forEach(link => {
            link.addEventListener('click', function() {
              // 移除所有链接的高亮样式      
              navLinks.forEach(link => {    
                link.classList.remove('active');    
              });   
              // 给当前点击的链接添加高亮样式   
              this.classList.add('active');  
            });  
          });
          navLinks[2].classList.add('active');
        }
    </script>
     <ul class="top1 auto clearfix">
        <li><a href="../index.html" >首页</a></li>
        <li><a href="../part1/partone.html" >鸦片战争</a></li>
        <li><a href="parttwo.html" >辛亥革命</a></li>
        <li><a href="../part3/partthree.html" >五四运动</a></li>
        <li><a href="../part4/Anti-JapaneseWar.html" >抗日战争</a></li>
        <li><a href="../part5/partfive.html" >中华人民共和国成立</a></li>
        <li style="float: right;"><a href="../part0/message.html">留言</a></li>
    </ul>
        <div class="sidebar">
            <ul class="sidebar">
                <p class="chakan">查看更多</p>
                <li><a href="parttwo.html">首页</a></li>
                <li><a href="history.html">历史背景</a></li>
                <li><a href="events.html">重大事件</a></li>
                <li><a href="people.html">人物介绍</a></li>
                <li><a href="impact.html">影响与意义</a></li>
                <li><a href="references.html">参考资料</a></li>
            </ul>
        </div>

        <div class="references-container">
            <h3><i class="fas fa-link"></i> 相关链接</h3>
            <ul>
                <li><a href="https://1911museum.cn/index.php">辛亥革命博物院</a></li>
                <li><a href="https://www.xhgmjng.com/News/OtherNews/dc21a71addccfa94913c02170e5575fb">辛亥革命纪念馆</a></li>
            </ul>
            <h3><i class="fas fa-book"></i> 推荐书籍</h3>
            <ul>
                <li><a href="https://www.baidu.com/link?url=FVa5Jn1UL-fng4S2A3QdZ0O9T-MprFbSpaN9Kx5TtNkSkpAyg5biNtkPF9pIYKDstJIAX7Sm0hn1sRPy3YQ1jTvpojRwNE5zoA-rziA8eMh09byTXBTyZ8NmcrfpTFwzcJCK8opvW53pvlOqFR5-Rojpn5Drndag-L3CddS1jz1YEDXy9KYaBv6NScXBNJkdhyAYAZK4frGCB21prlaARa1zIC5_sQbNr7_6IoFmTsq&wd=&eqid=b459a9730000d683000000026725a129">《民国初年：辛亥革命后的岁月》</a></li>
                <li><a href="https://www.baidu.com/link?url=5pKxyoKWEUUURiDX4YW-SHBGO5HFM2wMPqo_TGakSTI3gV9AGxnh3ggxAM7_z9PBwll4T58oIn-VBDYGpyCjRRMBg8UrgLeQORkKy0KPyNegd54dEDgnX0l53Z2D5aWR&wd=&eqid=bec7e60e0003d756000000026725a248">《百年辛亥》</a></li>
                <li><a href="https://www.baidu.com/link?url=hMjW0Ow1hBQKaiyIvVUnBOe6by7OQGZBb8sVuvYoWZOm_6fMRo4mLT2F57HsyMhoqJvJmZoElmWqi1Dqk4QAdNTIpzRVpnmgNCpS8C_avvq6tx6frBHGQqKWekyeficfkJGZRgjlIQawH2DlvDJhwYKbhe-M6_mhGorzHW3vB_6GEyYyNJMEwBtUCu-rk1q-&wd=&eqid=b8fa07f00003cea8000000026725a268">《孙中山与辛亥革命》</a></li>
            </ul>
            <h3><i class="fas fa-video"></i> 推荐视频资料</h3>
            <ul>
                <li><a href="https://www.bithc.org.cn/view/xhgmysb2011/1-1.html">辛亥革命电影</a></li>
                <li><a href="http://jishi.cntv.cn/2015/04/24/VIDA1429843612694645.shtml">辛亥革命纪录片</a></li>
            </ul>
        </div>

           
        <div class="footer auto">
            东北林业大学 © 2024 中国近代史科普
        </div>
        
    </body>
</html>